﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GestaoContas
{
    public partial class SalaDialog : Form
    {
        public SalaDialog()
        {
            InitializeComponent();
        }

        public SalaDialog(string nomeSala, string observacoes)
        {
            InitializeComponent();
            textBoxNomeSala.Text = nomeSala;
            textBoxObservacoes.Text = observacoes;
        }

        private string _nomeSala;

        public string NomeSala
        {
            get { return _nomeSala; }
            set { _nomeSala = value; }
        }

        private string _observacoes;

        public string Observacoes
        {
            get { return _observacoes; }
            set { _observacoes = value; }
        }

        private void buttonGravar_Click(object sender, EventArgs e)
        {
            _nomeSala = textBoxNomeSala.Text;
            _observacoes = textBoxObservacoes.Text;
        }
    }
}
